
namespace AutomaticLogin
{
    using System;
    using System.Xml.Serialization;
    using System.Xml;
    
    public partial class LoginInput 
    {
        private const string TAG = @"<Input id=""{0}"" val=""{1}"" />";

        protected string m_inputId;

        protected string m_val;

        public LoginInput()
        {}

        public LoginInput(XmlNode node)
        {
            m_inputId = node.Attributes["id"].Value;
            m_val = node.Attributes["val"].Value;
        }

        public string ToXml()
        {
            return string.Format(TAG, m_inputId, m_val);
        }

        public string inputId
        {
            get
            {
                return m_inputId;
            }
            set
            {
                m_inputId = value;
            }
        }

        public string val
        {
            get
            {
                return m_val;
            }
            set
            {
                m_val = value;
            }
        }

    }
}
